<template>
  <div id="app">

    <!-- 声明式导航 -->
    <router-link to="/home">首页</router-link>
     | 
    <router-link to="/search">搜索页</router-link>

    <router-view></router-view>

  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  }
}
</script>

<style>
.active {
  background-color: pink;
}
.nav-item {
  background-color: yellowgreen;
}

</style>
